package com.jcl.cloud.services.crawler.brain.task;


import com.jcl.cloud.common.service.exception.JclCrawlException;
import com.jcl.cloud.services.brain.common.dto.BuyResumeDataModel;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class BuyResumeWorkerHandler implements WorkerHandler {


    @Autowired
    private ExecuteBuyResumeHandler executeBuyResumeHandler;

    @Override
    public void execute(Object object) throws JclCrawlException {
        BuyResumeDataModel buyResumeDataModel = (BuyResumeDataModel)object;
        this.executeBuyResumeHandler.executeBuy(buyResumeDataModel);

    }

    @Override
    public void handlerException(Object object, String failReason) {

    }




}
